package cn.iocoder.ny.module.activity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "activity")
public class Activity {
    /**
     * 活动ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 活动类型ID
     */
    @TableField(value = "type_id")
    private Long typeId;

    /**
     * 活动名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 活动状态（0: 已上架, 1: 未审核, 2: 已下架, 3: 驳回）
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 活动开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @TableField(value = "expire_time")
    private Date expireTime;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    // 报名开始时间
    @TableField(value = "application_time")
    private Date applicationTime;
    // 报名截止时间
    @TableField(value = "registration_deadtime")
    private Date registrationDeadtime;

    @TableField(value = "userId")
    private Long userId;

    @TableField(value = "mobile")
    private String mobile;

}